home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-11-06 | 2.4 KB | [UVtx/UVtl] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, Mon Nov 4 04:52:48 1996, modified Wed Nov 6 05:50:51 1996, creator 'UVtl', type 'UVtx', 1811 bytes "Hilbert Fractal" , at 0x793 371 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
100%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [UVtx] |
macFileCreator | [UVtl] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 48 69 6c 62 65 72 | 74 20 46 72 61 63 74 61 |..Hilber|t Fracta|
|00000010| 6c 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |l.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 55 56 74 78 55 56 74 | 6c 00 00 00 00 00 00 00 |.UVtxUVt|l.......|
|00000050| 00 00 00 00 00 07 13 00 | 00 01 73 ae a3 6d 70 ae |........|..s..mp.|
|00000060| a6 1e 0b 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 58 6e 00 00 |........|....Xn..|
|00000080| 0d 2f 2f 20 54 68 69 73 | 20 70 72 6f 67 72 61 6d |.// This| program|
|00000090| 20 64 65 6d 6f 6e 73 74 | 72 61 74 65 73 20 61 20 | demonst|rates a |
|000000a0| 66 72 61 63 74 61 6c 20 | 64 72 61 77 69 6e 67 2e |fractal |drawing.|
|000000b0| 20 20 54 68 65 20 6d 61 | 69 6e 20 70 72 6f 67 72 | The ma|in progr|
|000000c0| 61 6d 0d 2f 2f 20 63 61 | 6c 6c 73 20 48 69 6c 62 |am.// ca|lls Hilb|
|000000d0| 65 72 74 28 29 2c 20 70 | 61 73 73 69 6e 67 20 69 |ert(), p|assing i|
|000000e0| 74 20 74 68 65 20 64 65 | 73 69 72 65 64 20 72 65 |t the de|sired re|
|000000f0| 63 75 72 73 69 6f 6e 20 | 6c 65 76 65 6c 2c 20 61 |cursion |level, a|
|00000100| 6e 64 20 74 68 65 0d 2f | 2f 20 73 74 65 70 20 73 |nd the./|/ step s|
|00000110| 69 7a 65 20 28 74 68 65 | 20 6c 65 6e 67 74 68 20 |ize (the| length |
|00000120| 66 6f 72 20 65 61 63 68 | 20 22 46 6f 72 77 61 72 |for each| "Forwar|
|00000130| 64 22 20 63 6f 6d 6d 61 | 6e 64 29 2e 20 20 54 68 |d" comma|nd). Th|
|00000140| 65 20 73 74 65 70 20 73 | 69 7a 65 0d 2f 2f 20 69 |e step s|ize.// i|
|00000150| 73 20 63 6f 6d 70 75 74 | 65 64 20 66 72 6f 6d 20 |s comput|ed from |
|00000160| 74 68 65 20 73 63 72 65 | 65 6e 20 64 69 6d 65 6e |the scre|en dimen|
|00000170| 73 69 6f 6e 73 20 61 6e | 64 20 74 68 65 20 72 65 |sions an|d the re|
|00000180| 63 75 72 73 69 6f 6e 20 | 6c 65 76 65 6c 2e 0d 2f |cursion |level../|
|00000190| 2f 20 0d 2f 2f 20 48 69 | 6c 62 65 72 74 28 29 20 |/ .// Hi|lbert() |
|000001a0| 69 73 20 63 61 6c 6c 65 | 64 20 66 72 6f 6d 20 74 |is calle|d from t|
|000001b0| 68 65 20 6d 61 69 6e 20 | 70 72 6f 67 72 61 6d 20 |he main |program |
|000001c0| 69 6e 20 61 20 6c 6f 6f | 70 2e 20 20 54 68 65 20 |in a loo|p. The |
|000001d0| 73 61 6d 65 0d 2f 2f 20 | 66 72 61 63 74 61 6c 20 |same.// |fractal |
|000001e0| 69 73 20 64 72 61 77 6e | 20 74 68 72 65 65 20 74 |is drawn| three t|
|000001f0| 69 6d 65 73 2c 20 65 61 | 63 68 20 77 69 74 68 20 |imes, ea|ch with |
|00000200| 61 20 73 6c 69 67 68 74 | 20 6f 66 66 73 65 74 20 |a slight| offset |
|00000210| 61 6e 64 20 61 0d 2f 2f | 20 64 69 66 66 65 72 65 |and a.//| differe|
|00000220| 6e 74 20 63 6f 6c 6f 72 | 2e 20 20 54 68 69 73 20 |nt color|. This |
|00000230| 63 72 65 61 74 65 73 20 | 61 20 33 44 20 69 6c 6c |creates |a 3D ill|
|00000240| 75 73 69 6f 6e 2e 0d 0d | 2f 2f 20 50 72 6f 67 72 |usion...|// Progr|
|00000250| 61 6d 6d 69 6e 67 20 6e | 6f 74 65 3a 20 22 6c 65 |amming n|ote: "le|
|00000260| 6e 67 74 68 22 20 69 73 | 20 61 20 66 6f 72 6d 61 |ngth" is| a forma|
|00000270| 6c 20 61 72 67 75 6d 65 | 6e 74 20 6f 66 20 48 69 |l argume|nt of Hi|
|00000280| 6c 62 65 72 74 28 29 2e | 0d 2f 2f 20 49 74 20 69 |lbert().|.// It i|
|00000290| 73 20 74 68 75 73 20 6d | 61 64 65 20 69 6d 70 6c |s thus m|ade impl|
|000002a0| 69 63 69 74 6c 79 20 61 | 76 61 69 6c 61 62 6c 65 |icitly a|vailable|
|000002b0| 20 66 6f 72 20 48 69 6c | 62 65 72 74 53 74 65 70 | for Hil|bertStep|
|000002c0| 28 29 2c 20 65 76 65 6e | 0d 2f 2f 20 74 68 6f 75 |(), even|.// thou|
|000002d0| 67 68 20 69 74 20 69 73 | 20 6e 6f 74 20 65 78 70 |gh it is| not exp|
|000002e0| 6c 69 63 69 74 6c 79 20 | 70 61 73 73 65 64 20 61 |licitly |passed a|
|000002f0| 73 20 61 6e 20 61 72 67 | 75 6d 65 6e 74 2e 20 0d |s an arg|ument. .|
|00000300| 0d 2f 2f 20 54 68 65 20 | 70 72 6f 67 72 61 6d 20 |.// The |program |
|00000310| 72 75 6e 73 20 70 72 65 | 74 74 79 20 66 61 73 74 |runs pre|tty fast|
|00000320| 20 6f 6e 20 61 20 50 6f | 77 65 72 50 43 2e 20 20 | on a Po|werPC. |
|00000330| 49 66 20 79 6f 75 20 68 | 61 76 65 20 61 6e 20 6f |If you h|ave an o|
|00000340| 6c 64 65 72 0d 2f 2f 20 | 4d 61 63 2c 20 79 6f 75 |lder.// |Mac, you|
|00000350| 20 6d 61 79 20 77 61 6e | 74 20 74 6f 20 73 65 74 | may wan|t to set|
|00000360| 20 72 65 63 75 72 73 69 | 6f 6e 44 65 70 74 68 3d | recursi|onDepth=|
|00000370| 35 2e 0d 0d 0d 72 65 63 | 75 72 73 69 6f 6e 44 65 |5....rec|ursionDe|
|00000380| 70 74 68 20 3d 20 37 0d | 0d 0d 73 74 65 70 53 69 |pth = 7.|..stepSi|
|00000390| 7a 65 20 3d 20 69 6e 74 | 28 20 6d 69 6e 28 77 69 |ze = int|( min(wi|
|000003a0| 64 74 68 28 29 2c 68 65 | 69 67 68 74 28 29 29 20 |dth(),he|ight()) |
|000003b0| 2f 20 28 32 5e 72 65 63 | 75 72 73 69 6f 6e 44 65 |/ (2^rec|ursionDe|
|000003c0| 70 74 68 29 20 29 0d 52 | 65 70 65 61 74 20 69 2c |pth) ).R|epeat i,|
|000003d0| 30 2c 32 0d 20 20 20 20 | 70 69 63 6b 4f 66 66 73 |0,2. |pickOffs|
|000003e0| 65 74 41 6e 64 43 6f 6c | 6f 72 28 69 29 0d 20 20 |etAndCol|or(i). |
|000003f0| 20 20 48 69 6c 62 65 72 | 74 28 72 65 63 75 72 73 | Hilber|t(recurs|
|00000400| 69 6f 6e 44 65 70 74 68 | 2c 20 73 74 65 70 53 69 |ionDepth|, stepSi|
|00000410| 7a 65 29 0d 0d 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |ze)..///|////////|
|00000420| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 0d 46 75 |////////|/////.Fu|
|00000430| 6e 63 74 69 6f 6e 20 48 | 69 6c 62 65 72 74 28 64 |nction H|ilbert(d|
|00000440| 65 70 74 68 2c 20 6c 65 | 6e 67 74 68 29 0d 20 20 |epth, le|ngth). |
|00000450| 20 20 48 69 6c 62 65 72 | 74 53 74 65 70 28 64 65 | Hilber|tStep(de|
|00000460| 70 74 68 2c 20 39 30 29 | 0d 0d 2f 2f 2f 2f 2f 2f |pth, 90)|..//////|
|00000470| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000480| 2f 2f 0d 46 75 6e 63 74 | 69 6f 6e 20 48 69 6c 62 |//.Funct|ion Hilb|
|00000490| 65 72 74 53 74 65 70 28 | 64 65 70 74 68 2c 20 64 |ertStep(|depth, d|
|000004a0| 69 72 65 63 74 69 6f 6e | 29 0d 20 20 20 20 49 66 |irection|). If|
|000004b0| 20 64 65 70 74 68 20 3e | 20 30 0d 20 20 20 20 20 | depth >| 0. |
|000004c0| 20 20 20 4c 65 66 74 20 | 64 69 72 65 63 74 69 6f | Left |directio|
|000004d0| 6e 0d 20 20 20 20 20 20 | 20 20 48 69 6c 62 65 72 |n. | Hilber|
|000004e0| 74 53 74 65 70 28 64 65 | 70 74 68 2d 31 2c 20 2d |tStep(de|pth-1, -|
|000004f0| 64 69 72 65 63 74 69 6f | 6e 29 0d 20 20 20 20 20 |directio|n). |
|00000500| 20 20 20 46 6f 72 77 61 | 72 64 20 6c 65 6e 67 74 | Forwa|rd lengt|
|00000510| 68 0d 20 20 20 20 20 20 | 20 20 52 69 67 68 74 20 |h. | Right |
|00000520| 64 69 72 65 63 74 69 6f | 6e 0d 20 20 20 20 20 20 |directio|n. |
|00000530| 20 20 48 69 6c 62 65 72 | 74 53 74 65 70 28 64 65 | Hilber|tStep(de|
|00000540| 70 74 68 2d 31 2c 20 64 | 69 72 65 63 74 69 6f 6e |pth-1, d|irection|
|00000550| 29 0d 20 20 20 20 20 20 | 20 20 46 6f 72 77 61 72 |). | Forwar|
|00000560| 64 20 6c 65 6e 67 74 68 | 0d 20 20 20 20 20 20 20 |d length|. |
|00000570| 20 48 69 6c 62 65 72 74 | 53 74 65 70 28 64 65 70 | Hilbert|Step(dep|
|00000580| 74 68 2d 31 2c 20 64 69 | 72 65 63 74 69 6f 6e 29 |th-1, di|rection)|
|00000590| 0d 20 20 20 20 20 20 20 | 20 52 69 67 68 74 20 64 |. | Right d|
|000005a0| 69 72 65 63 74 69 6f 6e | 0d 20 20 20 20 20 20 20 |irection|. |
|000005b0| 20 46 6f 72 77 61 72 64 | 20 6c 65 6e 67 74 68 0d | Forward| length.|
|000005c0| 20 20 20 20 20 20 20 20 | 48 69 6c 62 65 72 74 53 | |HilbertS|
|000005d0| 74 65 70 28 64 65 70 74 | 68 2d 31 2c 20 2d 64 69 |tep(dept|h-1, -di|
|000005e0| 72 65 63 74 69 6f 6e 29 | 0d 20 20 20 20 20 20 20 |rection)|. |
|000005f0| 20 4c 65 66 74 20 64 69 | 72 65 63 74 69 6f 6e 0d | Left di|rection.|
|00000600| 20 20 20 20 20 20 20 20 | 0d 2f 2f 2f 2f 2f 2f 2f | |.///////|
|00000610| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000620| 2f 2f 0d 46 75 6e 63 74 | 69 6f 6e 20 70 69 63 6b |//.Funct|ion pick|
|00000630| 4f 66 66 73 65 74 41 6e | 64 43 6f 6c 6f 72 28 69 |OffsetAn|dColor(i|
|00000640| 74 65 72 61 74 69 6f 6e | 29 0d 20 20 20 20 49 66 |teration|). If|
|00000650| 20 69 74 65 72 61 74 69 | 6f 6e 20 3d 20 30 0d 20 | iterati|on = 0. |
|00000660| 20 20 20 20 20 20 20 63 | 6f 6c 6f 72 5b 30 5d 20 | c|olor[0] |
|00000670| 3d 20 22 30 2c 30 2c 30 | 22 20 20 20 20 20 20 20 |= "0,0,0|" |
|00000680| 20 20 20 20 20 20 20 2f | 2f 20 62 6c 61 63 6b 0d | /|/ black.|
|00000690| 20 20 20 20 20 20 20 20 | 63 6f 6c 6f 72 5b 31 5d | |color[1]|
|000006a0| 20 3d 20 22 36 37 39 38 | 2c 33 30 38 31 38 2c 36 | = "6798|,30818,6|
|000006b0| 35 35 33 35 22 20 20 20 | 2f 2f 20 62 6c 75 65 0d |5535" |// blue.|
|000006c0| 20 20 20 20 20 20 20 20 | 63 6f 6c 6f 72 5b 32 5d | |color[2]|
|000006d0| 20 3d 20 22 36 35 35 33 | 35 2c 36 35 35 33 35 2c | = "6553|5,65535,|
|000006e0| 36 35 35 33 35 22 20 20 | 2f 2f 20 77 68 69 74 65 |65535" |// white|
|000006f0| 0d 20 20 20 20 20 20 20 | 20 43 6c 65 61 72 20 36 |. | Clear 6|
|00000700| 35 35 33 35 2c 35 30 32 | 36 31 2c 32 30 33 39 32 |5535,502|61,20392|
|00000710| 0d 20 20 20 20 43 6f 6c | 6f 72 20 63 6f 6c 6f 72 |. Col|or color|
|00000720| 5b 69 74 65 72 61 74 69 | 6f 6e 5d 0d 20 20 20 20 |[iterati|on]. |
|00000730| 55 70 0d 20 20 20 20 47 | 6f 74 6f 20 2d 77 69 64 |Up. G|oto -wid|
|00000740| 74 68 28 29 2f 32 2b 32 | 2b 69 74 65 72 61 74 69 |th()/2+2|+iterati|
|00000750| 6f 6e 2c 20 2d 68 65 69 | 67 68 74 28 29 32 2f 2b |on, -hei|ght()2/+|
|00000760| 32 2b 69 74 65 72 61 74 | 69 6f 6e 2c 20 30 0d 20 |2+iterat|ion, 0. |
|00000770| 20 20 20 44 6f 77 6e 0d | 20 20 20 20 69 74 65 72 | Down.| iter|
|00000780| 61 74 69 6f 6e 20 3d 20 | 69 74 65 72 61 74 69 6f |ation = |iteratio|
|00000790| 6e 2b 31 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |n+1.....|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 00 00 01 00 00 00 01 1d | 00 00 00 1d 00 00 00 56 |........|.......V|
|00000810| 3c 33 32 37 30 45 39 46 | 45 2e 36 38 42 41 40 62 |<3270E9F|E.68BA@b|
|00000820| 65 69 74 62 65 72 6c 2e | 62 65 69 74 62 65 72 6c |eitberl.|beitberl|
|00000830| 0f 48 69 6c 62 65 72 74 | 20 46 72 61 63 74 61 6c |.Hilbert| Fractal|
|00000840| 02 00 00 00 55 56 74 78 | 55 56 74 6c 00 00 b2 8b |....UVtx|UVtl....|
|00000850| 00 00 55 56 74 78 55 56 | 74 6c 00 00 b2 8b b1 90 |..UVtxUV|tl......|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 ae a3 6d 70 00 00 | 07 13 00 00 01 73 72 6c |....mp..|.....srl|
|00000880| 2e 62 65 69 74 62 65 72 | 6c 2e 61 63 2e 69 6c 3e |.beitber|l.ac.il>|
|00000890| 0d 58 2d 4d 61 69 6c 65 | 72 3a 20 4d 6f 7a 69 6c |.X-Maile|r: Mozil|
|000008a0| 6c 61 20 32 2e 30 31 20 | 28 57 69 6e 31 36 3b 20 |la 2.01 |(Win16; |
|000008b0| 49 29 0d 4d 49 4d 45 2d | 56 65 72 73 69 6f 6e 3a |I).MIME-|Version:|
|000008c0| 20 31 2e 30 0d 54 6f 3a | 20 4c 6f 67 6f 2d 4c 20 | 1.0.To:| Logo-L |
|000008d0| 3c 4c 6f 67 6f 2d 4c 40 | 67 73 6e 2e 6f 72 67 3e |<Logo-L@|gsn.org>|
|000008e0| 0d 43 43 3a 20 54 65 6e | 6e 65 73 73 65 65 20 43 |.CC: Ten|nessee C|
|000008f0| 61 72 6d 65 6c 2d 56 65 | 69 6c 6c 65 75 78 20 3c |armel-Ve|illeux <|
|00000900| 00 00 00 08 00 2c 00 0a | 02 6e 02 30 00 00 00 08 |.....,..|.n.0....|
|00000910| 00 29 00 38 02 2b 02 4e | 00 00 00 01 00 00 00 01 |.).8.+.N|........|
|00000920| 00 00 00 01 1d 00 00 00 | 1d 00 00 00 56 02 48 01 |........|....V.H.|
|00000930| 88 1d c0 00 00 00 1c 00 | 52 00 01 77 53 69 5a 00 |........|R..wSiZ.|
|00000940| 01 00 12 77 32 72 6e 00 | 00 00 2a 01 2c 00 00 00 |...w2rn.|..*.,...|
|00000950| 00 00 00 02 4f 27 40 01 | 90 00 02 00 00 00 0c 02 |....O'@.|........|
|00000960| 4f 2a 34 00 5a ff ff 00 | 00 00 18 00 00 00 00 01 |O*4.Z...|........|
|00000970| 45 01 52 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |E.R.....|........|
+--------+-------------------------+-------------------------+--------+--------+